package health.lm.com.mine.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseItemDraggableAdapter;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import health.lm.com.mine.R;
import health.lm.com.mine.entity.CashAccountEntity;

/**
 * 提现账户
 */

public class CashAccountAdapter extends BaseItemDraggableAdapter<CashAccountEntity,BaseViewHolder> {
    public CashAccountAdapter(@Nullable List<CashAccountEntity> data) {
        super(R.layout.item_cash_account, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, CashAccountEntity item) {
        helper.setText(R.id.tv_bank_card_name,item.getTitle())
                .setEnabled(R.id.tv_selected,item.isSelected());

    }
}
